<h1>Listing requisicaos</h1>

<table>
  <tr>
    <th>Hospedagem</th>
    <th>Servico</th>
    <th>Qtd</th>
    <th>Preco unitario</th>
    <th>Estornado</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @requisicaos.each do |requisicao| %>
  <tr>
    <td><%= requisicao.hospedagem.hospede.nome %></td>
    <td><%= requisicao.servico.desc_curta %></td>
    <td><%= requisicao.qtd %></td>
    <td><%= requisicao.preco_unitario %></td>
    <td><%= requisicao.estornado %></td>
    <td><%= link_to 'Detalhes', requisicao %></td>
    <td><%= link_to 'Editar', edit_requisicao_path(requisicao) %></td>
    <td><%= link_to 'Remover', requisicao, confirm: 'Tem certeza?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />